home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_2
/
jm
/
rexxexamples
/
sysload.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1992-03-12
|
933b
|
23 lines
/*c:rx
*****************************************************************************
* *
* Example program to check with JM server about system load *
* *
*****************************************************************************/
options results /* we want to hear about results */
address jmserver /* connect to JM server's ARexx port */
sysload /* figure out idle cpu time */
load = result /* we get: load average times 100 */
if load < 50 then say "The system is lightly loaded"
if load >= 50 & load < 100 then say "The system is moderately loaded"
if load >= 100 & load < 500 then say "The system is heavily loaded"
if load >= 500 then say "Maybe you should buy a Cray!"
exit
end